package com.xu.createThread;

public class Thread2 implements Runnable{
    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println("子线程"+Thread.currentThread().getName());
        }
    }
    public static void main(String[] args) {
        Thread2 a  = new Thread2();
        Thread2 b  = new Thread2();
        new Thread(a).start();
        new Thread(b).start();
    }
}
